<!--用来测试跨域-->
<html>
<head>
    <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
    <script type="text/javascript">
        // $(document).ready(function () {
        //     $("p").click(function () {
        //         $(this).hide();
        //     });
        // });
        // $.get("https://hulk-op.qa.huohua.cn/api/product/status/list", function () {
        //
        // });
        //
        // $.get(" http://10.251.171.50:8080/product/status/list", function () {
        //
        // });
    </script>

</head>

<body>
<form>
    First name: <input id="email" name="email" type="text"><br>
    <input id="btn" type="button" value="Submit">
</form>

<p>
    邮箱：<a href="#" id="emailText"></a><br/>
    分数：<a href="#" id="score"></a>

</p>


<script>
    $("#btn").click(function () {
        let email = $("#email").val();
        $.get("https://manage-api.sim.allschool.com/api2/json/queryEmail?email="+email, function (data) {
               $("#emailText").html(data.email);
               $("#score").html(data.result);
      });
    })

</script>
</body>

</html>
